Replaces the deprecated functionality of std::os::num_cpus.
Returns the number of CPUs of the current machine.